package com.aci.test.wordfreq.factory.impl;

import com.aci.test.wordfreq.factory.ISelectorFactory;
import com.aci.test.wordfreq.sort.IWordsListSelector;
import com.aci.test.wordfreq.sort.impl.FirstElementsSelector;

public class SelectorFactory implements ISelectorFactory {

	private static final SelectorFactory INSTANCE = new SelectorFactory();
	private static final int SELECTION_SIZE = 10;

	private SelectorFactory() {
	}

	@Override
	public IWordsListSelector createSelector() {
		return new FirstElementsSelector(SELECTION_SIZE);
	}

	public static ISelectorFactory getInstance() {
		return INSTANCE;
	}

}
